package com.lianzhihui.romeex.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lianzhihui.romeex.R;
import com.lianzhihui.romeex.bean.WalletMainBean;

import java.util.List;

/**
 * Description: 主页适配器
 * Author: RAMON
 * CreateDate: 2020/11/4 8:10 PM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class CoinSelAdapter extends BaseQuickAdapter<WalletMainBean.CoinBean, BaseViewHolder> {

    public CoinSelAdapter(@Nullable List<WalletMainBean.CoinBean> data) {
        super(R.layout.item_coins_sel_layout, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, WalletMainBean.CoinBean item) {
        helper.setText(R.id.tv_name, item.getCoinNameAlias());
    }
}
